.class public Lcn/sharesdk/evernote/Evernote;
.super Lcn/sharesdk/framework/Platform;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcn/sharesdk/evernote/Evernote$ShareParams;
    }
.end annotation


# static fields
.field public static final NAME:Ljava/lang/String;


# instance fields
.field private a:Ljava/lang/String;

.field private b:Ljava/lang/String;

.field private c:Ljava/lang/String;

.field private d:Z


# direct methods
.method static constructor <clinit>()V
    .registers 1

    const-class v0, Lcn/sharesdk/evernote/Evernote;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcn/sharesdk/evernote/Evernote;->NAME:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 2

    invoke-direct {p0, p1}, Lcn/sharesdk/framework/Platform;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic a(Lcn/sharesdk/evernote/Evernote;ILjava/lang/Object;)V
    .registers 3

    invoke-virtual {p0, p1, p2}, Lcn/sharesdk/evernote/Evernote;->afterRegister(ILjava/lang/Object;)V

    return-void
.end method

.method static synthetic b(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic c(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformDb;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    return-object v0
.end method

.method static synthetic d(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformDb;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    return-object v0
.end method

.method static synthetic e(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformDb;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    return-object v0
.end method

.method static synthetic f(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformDb;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    return-object v0
.end method

.method static synthetic g(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformDb;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    return-object v0
.end method

.method static synthetic h(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformDb;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    return-object v0
.end method

.method static synthetic i(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic j(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic k(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic l(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic m(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic n(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic o(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic p(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic q(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method static synthetic r(Lcn/sharesdk/evernote/Evernote;)Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method


# virtual methods
.method protected checkAuthorize(ILjava/lang/Object;)Z
    .registers 7

    const/4 v0, 0x1

    invoke-static {p0}, Lcn/sharesdk/evernote/f;->a(Lcn/sharesdk/framework/Platform;)Lcn/sharesdk/evernote/f;

    move-result-object v1

    iget-object v2, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    invoke-virtual {v1, v2}, Lcn/sharesdk/evernote/f;->a(Lcn/sharesdk/framework/PlatformDb;)V

    iget-object v2, p0, Lcn/sharesdk/evernote/Evernote;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcn/sharesdk/evernote/f;->a(Ljava/lang/String;)V

    iget-object v2, p0, Lcn/sharesdk/evernote/Evernote;->a:Ljava/lang/String;

    iget-object v3, p0, Lcn/sharesdk/evernote/Evernote;->b:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Lcn/sharesdk/evernote/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    const/16 v2, 0x9

    if-ne p1, v2, :cond_25

    iget-boolean v2, p0, Lcn/sharesdk/evernote/Evernote;->d:Z

    if-eqz v2, :cond_25

    invoke-virtual {v1}, Lcn/sharesdk/evernote/f;->b()Z

    move-result v1

    if-eqz v1, :cond_25

    :cond_24
    :goto_24
    return v0

    :cond_25
    invoke-virtual {p0}, Lcn/sharesdk/evernote/Evernote;->isValid()Z

    move-result v1

    if-nez v1, :cond_24

    invoke-virtual {p0, p1, p2}, Lcn/sharesdk/evernote/Evernote;->innerAuthorize(ILjava/lang/Object;)V

    const/4 v0, 0x0

    goto :goto_24
.end method

.method protected doAuthorize([Ljava/lang/String;)V
    .registers 5

    invoke-static {p0}, Lcn/sharesdk/evernote/f;->a(Lcn/sharesdk/framework/Platform;)Lcn/sharesdk/evernote/f;

    move-result-object v0

    iget-object v1, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    invoke-virtual {v0, v1}, Lcn/sharesdk/evernote/f;->a(Lcn/sharesdk/framework/PlatformDb;)V

    iget-object v1, p0, Lcn/sharesdk/evernote/Evernote;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcn/sharesdk/evernote/f;->a(Ljava/lang/String;)V

    iget-object v1, p0, Lcn/sharesdk/evernote/Evernote;->a:Ljava/lang/String;

    iget-object v2, p0, Lcn/sharesdk/evernote/Evernote;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcn/sharesdk/evernote/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v1, Lcn/sharesdk/evernote/d;

    invoke-direct {v1, p0}, Lcn/sharesdk/evernote/d;-><init>(Lcn/sharesdk/evernote/Evernote;)V

    invoke-virtual {v0, v1}, Lcn/sharesdk/evernote/f;->a(Lcn/sharesdk/framework/authorize/AuthorizeListener;)V

    return-void
.end method

.method protected doCustomerProtocol(Ljava/lang/String;Ljava/lang/String;ILjava/util/HashMap;Ljava/util/HashMap;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "I",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    invoke-interface {v0, p0, p3}, Lcn/sharesdk/framework/PlatformActionListener;->onCancel(Lcn/sharesdk/framework/Platform;I)V

    :cond_9
    return-void
.end method

.method protected doShare(Lcn/sharesdk/framework/Platform$ShareParams;)V
    .registers 21

    invoke-static/range {p0 .. p0}, Lcn/sharesdk/evernote/f;->a(Lcn/sharesdk/framework/Platform;)Lcn/sharesdk/evernote/f;

    move-result-object v3

    :try_start_4
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    invoke-virtual/range {p1 .. p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getText()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_20

    new-instance v2, Lcn/sharesdk/evernote/g;

    invoke-direct {v2}, Lcn/sharesdk/evernote/g;-><init>()V

    const/4 v4, 0x1

    move-object/from16 v0, p0

    invoke-virtual {v0, v1, v4}, Lcn/sharesdk/evernote/Evernote;->getShortLintk(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v2, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    invoke-virtual {v7, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_20
    invoke-virtual/range {p1 .. p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getImagePath()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_40

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_40

    new-instance v2, Lcn/sharesdk/evernote/g;

    invoke-direct {v2}, Lcn/sharesdk/evernote/g;-><init>()V

    new-instance v4, Ljava/io/File;

    invoke-direct {v4, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iput-object v4, v2, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    invoke-virtual {v7, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_40
    const-string v1, "resource"

    const-class v2, [Lcn/sharesdk/evernote/g;

    move-object/from16 v0, p1

    invoke-virtual {v0, v1, v2}, Lcn/sharesdk/framework/Platform$ShareParams;->get(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Lcn/sharesdk/evernote/g;

    if-eqz v1, :cond_8e

    array-length v2, v1

    if-lez v2, :cond_8e

    array-length v4, v1

    const/4 v2, 0x0

    :goto_53
    if-ge v2, v4, :cond_8e

    aget-object v5, v1, v2

    iget-object v6, v5, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    instance-of v6, v6, Ljava/lang/String;

    if-eqz v6, :cond_77

    new-instance v6, Lcn/sharesdk/evernote/g;

    invoke-direct {v6}, Lcn/sharesdk/evernote/g;-><init>()V

    iget-object v5, v5, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    const/4 v8, 0x1

    move-object/from16 v0, p0

    invoke-virtual {v0, v5, v8}, Lcn/sharesdk/evernote/Evernote;->getShortLintk(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v6, Lcn/sharesdk/evernote/g;->a:Ljava/lang/Object;

    invoke-virtual {v7, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_74
    add-int/lit8 v2, v2, 0x1

    goto :goto_53

    :cond_77
    invoke-virtual {v7, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_7a
    .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_7a} :catch_7b

    goto :goto_74

    :catch_7b
    move-exception v1

    move-object/from16 v0, p0

    iget-object v2, v0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v2, :cond_8d

    move-object/from16 v0, p0

    iget-object v2, v0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    const/16 v3, 0x9

    move-object/from16 v0, p0

    invoke-interface {v2, v0, v3, v1}, Lcn/sharesdk/framework/PlatformActionListener;->onError(Lcn/sharesdk/framework/Platform;ILjava/lang/Throwable;)V

    :cond_8d
    :goto_8d
    return-void

    :cond_8e
    :try_start_8e
    invoke-virtual/range {p1 .. p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getStack()Ljava/lang/String;

    move-result-object v4

    invoke-virtual/range {p1 .. p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getNotebook()Ljava/lang/String;

    move-result-object v5

    invoke-virtual/range {p1 .. p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getTitle()Ljava/lang/String;

    move-result-object v6

    invoke-virtual/range {p1 .. p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getTags()[Ljava/lang/String;

    move-result-object v8

    invoke-virtual/range {p1 .. p1}, Lcn/sharesdk/framework/Platform$ShareParams;->isPublic()Z

    move-result v9

    move-object/from16 v0, p0

    iget-boolean v1, v0, Lcn/sharesdk/evernote/Evernote;->d:Z

    if-eqz v1, :cond_ca

    invoke-virtual {v3}, Lcn/sharesdk/evernote/f;->b()Z

    move-result v1

    if-eqz v1, :cond_ca

    new-instance v1, Lcn/sharesdk/evernote/e;

    move-object/from16 v2, p0

    move-object/from16 v10, p1

    invoke-direct/range {v1 .. v10}, Lcn/sharesdk/evernote/e;-><init>(Lcn/sharesdk/evernote/Evernote;Lcn/sharesdk/evernote/f;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;[Ljava/lang/String;ZLcn/sharesdk/framework/Platform$ShareParams;)V

    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/evernote/Evernote;->getContext()Landroid/content/Context;

    move-result-object v11

    move-object v10, v3

    move-object v12, v1

    move-object v13, v4

    move-object v14, v5

    move-object v15, v6

    move-object/from16 v16, v7

    move-object/from16 v17, v8

    move/from16 v18, v9

    invoke-virtual/range {v10 .. v18}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;Lcn/sharesdk/framework/PlatformActionListener;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;[Ljava/lang/String;Z)V

    goto :goto_8d

    :cond_ca
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/evernote/Evernote;->getContext()Landroid/content/Context;

    move-result-object v11

    move-object v10, v3

    move-object v12, v4

    move-object v13, v5

    move-object v14, v6

    move-object v15, v7

    move-object/from16 v16, v8

    move/from16 v17, v9

    invoke-virtual/range {v10 .. v17}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;[Ljava/lang/String;Z)Ljava/util/HashMap;

    move-result-object v1

    const-string v2, "ShareParams"

    move-object/from16 v0, p1

    invoke-virtual {v1, v2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v2, :cond_8d

    move-object/from16 v0, p0

    iget-object v2, v0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    const/16 v3, 0x9

    move-object/from16 v0, p0

    invoke-interface {v2, v0, v3, v1}, Lcn/sharesdk/framework/PlatformActionListener;->onComplete(Lcn/sharesdk/framework/Platform;ILjava/util/HashMap;)V
    :try_end_f3
    .catch Ljava/lang/Throwable; {:try_start_8e .. :try_end_f3} :catch_7b

    goto :goto_8d
.end method

.method protected filterShareContent(Lcn/sharesdk/framework/Platform$ShareParams;Ljava/util/HashMap;)Lcn/sharesdk/framework/b/b/f$a;
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcn/sharesdk/framework/Platform$ShareParams;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Lcn/sharesdk/framework/b/b/f$a;"
        }
    .end annotation

    new-instance v0, Lcn/sharesdk/framework/b/b/f$a;

    invoke-direct {v0}, Lcn/sharesdk/framework/b/b/f$a;-><init>()V

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getText()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcn/sharesdk/framework/b/b/f$a;->b:Ljava/lang/String;

    if-eqz p2, :cond_19

    const-string v2, "guid"

    invoke-virtual {p2, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcn/sharesdk/framework/b/b/f$a;->a:Ljava/lang/String;

    :cond_19
    iget-object v2, v0, Lcn/sharesdk/framework/b/b/f$a;->e:Ljava/util/ArrayList;

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getImagePath()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    const-string v3, "notebook"

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getNotebook()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "title"

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform$ShareParams;->getTitle()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "text"

    invoke-virtual {v2, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v1, "images"

    iget-object v3, v0, Lcn/sharesdk/framework/b/b/f$a;->d:Ljava/util/ArrayList;

    invoke-virtual {v2, v1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iput-object v2, v0, Lcn/sharesdk/framework/b/b/f$a;->g:Ljava/util/HashMap;

    return-object v0
.end method

.method protected follow(Ljava/lang/String;)V
    .registers 4

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    const/4 v1, 0x6

    invoke-interface {v0, p0, v1}, Lcn/sharesdk/framework/PlatformActionListener;->onCancel(Lcn/sharesdk/framework/Platform;I)V

    :cond_a
    return-void
.end method

.method protected getFriendList(IILjava/lang/String;)V
    .registers 6

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    const/4 v1, 0x2

    invoke-interface {v0, p0, v1}, Lcn/sharesdk/framework/PlatformActionListener;->onCancel(Lcn/sharesdk/framework/Platform;I)V

    :cond_a
    return-void
.end method

.method public getName()Ljava/lang/String;
    .registers 2

    sget-object v0, Lcn/sharesdk/evernote/Evernote;->NAME:Ljava/lang/String;

    return-object v0
.end method

.method public getPlatformId()I
    .registers 2

    const/16 v0, 0xc

    return v0
.end method

.method public getVersion()I
    .registers 2

    const/4 v0, 0x1

    return v0
.end method

.method protected initDevInfo(Ljava/lang/String;)V
    .registers 4

    const-string v0, "ConsumerKey"

    invoke-virtual {p0, v0}, Lcn/sharesdk/evernote/Evernote;->getDevinfo(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/evernote/Evernote;->a:Ljava/lang/String;

    const-string v0, "ConsumerSecret"

    invoke-virtual {p0, v0}, Lcn/sharesdk/evernote/Evernote;->getDevinfo(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/evernote/Evernote;->b:Ljava/lang/String;

    const-string v0, "HostType"

    invoke-virtual {p0, v0}, Lcn/sharesdk/evernote/Evernote;->getDevinfo(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/evernote/Evernote;->c:Ljava/lang/String;

    const-string v0, "true"

    const-string v1, "ShareByAppClient"

    invoke-virtual {p0, v1}, Lcn/sharesdk/evernote/Evernote;->getDevinfo(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    iput-boolean v0, p0, Lcn/sharesdk/evernote/Evernote;->d:Z

    return-void
.end method

.method protected setNetworkDevinfo()V
    .registers 4

    const-string v0, "host_type"

    const-string v1, "HostType"

    invoke-virtual {p0, v0, v1}, Lcn/sharesdk/evernote/Evernote;->getNetworkDevinfo(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "1"

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2d

    const-string v0, "china"

    iput-object v0, p0, Lcn/sharesdk/evernote/Evernote;->c:Ljava/lang/String;

    :goto_18
    const-string v0, "consumer_key"

    const-string v1, "ConsumerKey"

    invoke-virtual {p0, v0, v1}, Lcn/sharesdk/evernote/Evernote;->getNetworkDevinfo(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/evernote/Evernote;->a:Ljava/lang/String;

    const-string v0, "consumer_secret"

    const-string v1, "ConsumerSecret"

    invoke-virtual {p0, v0, v1}, Lcn/sharesdk/evernote/Evernote;->getNetworkDevinfo(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/evernote/Evernote;->b:Ljava/lang/String;

    return-void

    :cond_2d
    const-string v1, "2"

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3e

    const-string v0, "production"

    iput-object v0, p0, Lcn/sharesdk/evernote/Evernote;->c:Ljava/lang/String;

    goto :goto_18

    :cond_3e
    const-string v0, "sandbox"

    iput-object v0, p0, Lcn/sharesdk/evernote/Evernote;->c:Ljava/lang/String;

    goto :goto_18
.end method

.method protected timeline(IILjava/lang/String;)V
    .registers 6

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    const/4 v1, 0x7

    invoke-interface {v0, p0, v1}, Lcn/sharesdk/framework/PlatformActionListener;->onCancel(Lcn/sharesdk/framework/Platform;I)V

    :cond_a
    return-void
.end method

.method protected userInfor(Ljava/lang/String;)V
    .registers 7

    const/16 v4, 0x8

    invoke-static {p0}, Lcn/sharesdk/evernote/f;->a(Lcn/sharesdk/framework/Platform;)Lcn/sharesdk/evernote/f;

    move-result-object v0

    :try_start_6
    invoke-virtual {p0}, Lcn/sharesdk/evernote/Evernote;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Lcn/sharesdk/evernote/f;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v0

    if-nez v0, :cond_21

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v0, :cond_20

    iget-object v0, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    const/16 v1, 0x8

    new-instance v2, Ljava/lang/Throwable;

    invoke-direct {v2}, Ljava/lang/Throwable;-><init>()V

    invoke-interface {v0, p0, v1, v2}, Lcn/sharesdk/framework/PlatformActionListener;->onError(Lcn/sharesdk/framework/Platform;ILjava/lang/Throwable;)V

    :cond_20
    :goto_20
    return-void

    :cond_21
    if-nez p1, :cond_34

    iget-object v1, p0, Lcn/sharesdk/evernote/Evernote;->db:Lcn/sharesdk/framework/PlatformDb;

    const-string v2, "nickname"

    const-string v3, "username"

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcn/sharesdk/framework/PlatformDb;->put(Ljava/lang/String;Ljava/lang/String;)V

    :cond_34
    iget-object v1, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v1, :cond_20

    iget-object v1, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    const/16 v2, 0x8

    invoke-interface {v1, p0, v2, v0}, Lcn/sharesdk/framework/PlatformActionListener;->onComplete(Lcn/sharesdk/framework/Platform;ILjava/util/HashMap;)V
    :try_end_3f
    .catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_3f} :catch_40

    goto :goto_20

    :catch_40
    move-exception v0

    iget-object v1, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    if-eqz v1, :cond_20

    iget-object v1, p0, Lcn/sharesdk/evernote/Evernote;->listener:Lcn/sharesdk/framework/PlatformActionListener;

    invoke-interface {v1, p0, v4, v0}, Lcn/sharesdk/framework/PlatformActionListener;->onError(Lcn/sharesdk/framework/Platform;ILjava/lang/Throwable;)V

    goto :goto_20
.end method
